package com.atguigu.tingshu.album.service;

import com.atguigu.tingshu.model.album.TrackInfo;
import com.atguigu.tingshu.query.album.TrackInfoQuery;
import com.atguigu.tingshu.vo.album.AlbumTrackListVo;
import com.atguigu.tingshu.vo.album.TrackListVo;
import com.atguigu.tingshu.vo.album.TrackStatMqVo;
import com.atguigu.tingshu.vo.album.TrackStatVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface TrackInfoService extends IService<TrackInfo> {

    void saveTrackInfo(Long userId, TrackInfo trackInfo);

    void saveTrackStat(Long trackId, String statType, int statNum);

    Page<TrackListVo> getUserTrackPage(Page<TrackListVo> pageInfo, TrackInfoQuery trackInfoQuery);

    void updateTrackInfo(TrackInfo trackInfo);

    void removeTrackInfo(Long id);

    Page<AlbumTrackListVo> getAlbumTrackPage(Page<AlbumTrackListVo> pageInfo, Long albumId, Long userId);

    void updateTrackStat(TrackStatMqVo mqVo);

    TrackStatVo getTrackStatVo(Long trackId);

    List<Map<String, Object>> getUserTrackPaidList(Long userId, Long trackId);

    List<TrackInfo> getWaitBuyTrackList(Long userId, Long trackId, Integer trackCount);
}
